import 'package:get/get.dart';
import 'package:star_author/utils/user_util.dart';

//todo:回流单流程
class BackFlowEvent {
  static const String reflow_realization = "reflow_realization"; //步骤一 点击回流变现
  static const String sell_jade_jade = "sell_jade_jade"; //步骤二 点击卖翡翠 点击卖和田玉
  static const String to_back_flow = "to_back_flow"; //步骤三 点击马上回流
  static const String to_back_flow_dialog_sure =
      "to_back_flow_dialog_sure"; //步骤四 弹框确定
}

//todo:出价流程
class BiddingEvent {
  static const String into_detail = 'into_detail'; //进入详情页
  static const String offer = 'offer'; //步骤二 出个价
  static const String submit_offer = 'submit_offer'; //步骤三 点击提交出价
  static const String submit_offer_dialog_sure =
      'submit_offer_dialog_sure'; //步骤四 出价确定
  static const String submit_success = 'submit_success'; //出价成功
}

//todo:直播间出价流程
class BiddingLiveEvent {
  static const String offer = 'offer_live'; //步骤二 出个价
  static const String submit_offer = 'submit_offer_live'; //步骤三 点击提交出价
  static const String submit_offer_dialog_sure =
      'submit_offer_dialog_sure_live'; //步骤四 出价确定
  static const String submit_success = 'submit_success_live'; //出价成功
}

//todo:鉴宝流程
class JianBaoEvent {
  static const String jian_bao_evaluation = 'jian_bao_evaluation'; //首页鉴宝估价
  static const String jian_bao_jade_jade = 'jian_bao_jade_jade'; //鉴宝玉翠
  static const String jian_bao_submit = 'jian_bao_submit'; //鉴宝提交
}

//todo:系统事件
class SystemEvent {
  //todo:已结拍列表查看
  static const String yi_jie_pai_lie_biao_cha_kan =
      "yi_jie_pai_lie_biao_cha_kan";
  //todo:即将拍列表查看
  static const String ji_jiang_jie_pai_lie_biao_cha_kan =
      "ji_jiang_jie_pai_lie_biao_cha_kan";

  //todo:竞标列表二级列表tab点击
  static const String jing_pai_lie_biao_er_ji_tab_dian_ji =
      "jing_pai_lie_biao_er_ji_tab_dian_ji";
  //todo:货品曝光
  static const String chong_xin_hui_liu_dian_ji = "chong_xin_hui_liu_dian_ji";

  //todo:货品曝光
  static const String huo_pin_bao_guang = "huo_pin_bao_guang";

  //todo:回流指引点击
  static const String hui_liu_zhi_yin_dian_ji = "hui_liu_zhi_yin_dian_ji";

  //todo:货品分享完成
  static const String fen_xiang_jing_biao = "fen_xiang_jing_biao";

  //todo:回流预约上门服务入口
  static const String yu_yue_shang_men_fu_wu = "yu_yue_shang_men_fu_wu";

  //todo:鉴宝报告下载
  static const String jian_bao_bao_gao_xia_zai = "jian_bao_bao_gao_xia_zai";

  //todo:常见问题页面浏览
  static const String liu_lan_chang_jian_wen_ti = "liu_lan_chang_jian_wen_ti";

  //todo:关注收藏
  static const String guan_zhu_shou_cang_dian_ji = "guan_zhu_shou_cang_dian_ji";

  //todo:设置自动接受回款点击
  static const String she_zhi_zi_dong_jie_shou_hui_kuan_dian_ji =
      "she_zhi_zi_dong_jie_shou_hui_kuan_dian_ji";

  //todo:设置自动接受回款完成
  static const String she_zhi_zi_dong_jie_shou_hui_kuan_wan_cheng =
      "she_zhi_zi_dong_jie_shou_hui_kuan_wan_cheng";

  //todo:寄出完成
  static const String ji_chu_wan_cheng = "ji_chu_wan_cheng";

  //todo:预约快递下单完成
  static const String yu_yue_kuai_di_xia_dan_wan_cheng =
      "yu_yue_kuai_di_xia_dan_wan_cheng";

  //todo:取消回流成功
  static const String qu_xiao_hui_liu = "qu_xiao_hui_liu"; //qu_xiao_hui_liu

  //todo:提前结拍
  static const String ti_qian_kai_biao = "ti_qian_kai_biao";

  //todo:接受回款
  static const String jie_shou_hui_kuan = "jie_shou_hui_kuan";

  //todo:重新竞拍
  static const String chong_xin_jing_biao = "chong_xin_jing_biao";

  //todo:中拍订单付款完成
  static const String zhong_biao_fu_kuan = "zhong_biao_fu_kuan";

  //todo:商城货品分享
  static const String fen_xiang_shang_cheng = "fen_xiang_shang_cheng";

  //todo:购物车加入
  static const String jia_ru_gou_wu_che = "jia_ru_gou_wu_che";

  //todo:货品下单
  static const String shang_cheng_xia_dan = "shang_cheng_xia_dan";

  //todo:商城付款完成
  static const String shang_cheng_fu_kuan = "shang_cheng_fu_kuan";

  //todo:回流钱包
  static const String qian_bao = "qian_bao";

  //todo:金刚区
  static const String jin_gang_qu = "jin_gang_qu";

  //todo:点击收取证书费用
  static const String chu_ju_zheng_shu = "chu_ju_zheng_shu";

  //todo:浏览足迹入口点击
  static const String liu_lan_zu_ji_ru_kou = "liu_lan_zu_ji_ru_kou";

  //todo:浏览足迹记录的图片点击
  static const String liu_lan_zu_ji_tu_pian_dian_ji =
      "liu_lan_zu_ji_tu_pian_dian_ji";

  //todo:预约快递修改预约入口点击
  static const String yu_yue_kuai_di_ru_kou_dian_ji =
      "yu_yue_kuai_di_ru_kou_dian_ji";

  //todo:预约快递修改预约确认修改点击
  static const String yu_yue_kuai_di_xiu_gai_que_ren_dian_ji =
      "yu_yue_kuai_di_xiu_gai_que_ren_dian_ji";

  //todo:用户心声
  static const String yong_hu_xin_sheng = "yong_hu_xin_sheng";

  //todo:观看录播
  static const String guan_kan_lu_bo = "guan_kan_lu_bo";

  //todo:关注收藏管理点击
  static const String guan_zhu_shou_cang_guan_li_dian_ji =
      "guan_zhu_shou_cang_guan_li_dian_ji";

  //todo:关注收藏筛选点击
  static const String guan_zhu_shou_cang_shai_xuan_dian_ji =
      "guan_zhu_shou_cang_shai_xuan_dian_ji";

  //todo:观看录播其他货品点击
  static const String guan_kan_lu_bo_qi_ta_huo_pin_dian_ji =
      "guan_kan_lu_bo_qi_ta_huo_pin_dian_ji";

  //todo:新人新货入口点击
  static const String xin_ren_xin_huo_ru_kou_dian_ji =
      "xin_ren_xin_huo_ru_kou_dian_ji";
  //todo:等你发现入口点击
  static const String deng_ni_fa_xian_ru_kou_dian_ji =
      "deng_ni_fa_xian_ru_kou_dian_ji";
  //todo:加价点击
  static const String jia_jia_dian_ji = "jia_jia_dian_ji";
  //todo:加价提交成功
  static const String jia_jia_ti_jiao_cheng_gong = "jia_jia_ti_jiao_cheng_gong";

  //todo:卡片曝光
  static const String ka_pian_bao_guang = "ka_pian_bao_guang";

  //todo:首页分类点击
  static const String shou_ye_fen_lei_dian_ji = "shou_ye_fen_lei_dian_ji";

  //todo:评估报告一键回流
  static const String yi_jian_hui_liu_dian_ji = "yi_jian_hui_liu_dian_ji";

  //todo:评估报告一键回流弹框确认
  static const String yi_jian_hui_liu_cheng_gong = "yi_jian_hui_liu_cheng_gong";

  //todo:分享 --- 后续所有分享通过参数来区分是哪个入口的分享
  static const String fen_xiang = "fen_xiang";
  //todo:鉴宝记录 --- 后续所有分享通过参数来区分是哪个入口的分享
  static const String jian_bao_ji_lv = "jian_bao_ji_lv";

  //todo:记录主播每次结束讲解的时候的一些数据 用来出现情况 排查问题，记录数据越多越好
  static const String jie_shu_jiang_jie = "jie_shu_jiang_jie";

  //todo:首页商城点击
  static const String shou_ye_bar_dian_ji = "shou_ye_bar_dian_ji";

  //todo:卖闲置问题tab点击
  static const String mai_xian_zhi_wen_ti_tab_dian_ji =
      "mai_xian_zhi_wen_ti_tab_dian_ji";

  //todo:卖闲置问题item点击
  static const String mai_xian_zhi_wen_ti_item_dian_ji =
      "mai_xian_zhi_wen_ti_item_dian_ji";

  //todo:寄售转回流按钮点击
  static const String ji_shou_zhuan_hui_liu_tan_kuang_que_ren =
      "ji_shou_zhuan_hui_liu_tan_kuang_que_ren";

  //todo:商城订单交易完成转回流弹窗确认点击
  static const String shang_cheng_zhuan_hui_liu_tan_kuang_que_ren =
      "shang_cheng_zhuan_hui_liu_tan_kuang_que_ren";

  //todo:中拍订单交易完成转回流弹窗确认点击
  static const String zhong_pai_zhuan_hui_liu_tan_kuang_que_ren =
      "zhong_pai_zhuan_hui_liu_tan_kuang_que_ren";

  //todo:已完结回流单再次回流弹窗点击
  static const String yi_wan_jie_zhuan_hui_liu_tan_kuang_que_ren =
      "yi_wan_jie_zhuan_hui_liu_tan_kuang_que_ren";

  //todo:竞标小提示
  static const String jing_biao_ti_shi_dian_ji = "jing_biao_ti_shi_dian_ji";
}

//todo:在线回收 --电话回收
class RecoveryEvent {
  //todo:在线回收
  static const String zai_xian_hui_shou = "zai_xian_hui_shou";

  //todo:电话回收
  static const String dian_hua_hui_shou = "dian_hua_hui_shou";
}

//todo:寄出货品
class SendGoodEvent {
  //todo:预约快递页面跳出
  static const String yu_yue_kuai_di_fan_hui = "yu_yue_kuai_di_fan_hui";

  //todo:地址薄点击
  static const String xuan_ze_di_zhi_dian_ji = "xuan_ze_di_zhi_dian_ji";

  //todo:其他寄出方式点击
  static const String qi_ta_ji_chu_fang_shi_dian_ji =
      "qi_ta_ji_chu_fang_shi_dian_ji";

  //todo:客服协助
  static const String ke_fu_xie_zhu_dian_ji = "ke_fu_xie_zhu_dian_ji";

  //todo:选择快递点击
  static const String xuan_ze_kuai_di_dian_ji = "xuan_ze_kuai_di_dian_ji";

  //todo:选择取件时间点击
  static const String xuan_ze_kuai_di_qu_jian_shi_jian_dian_ji =
      "xuan_ze_kuai_di_qu_jian_shi_jian_dian_ji";
}

//新人福利
class NewUserWelfareEvent {
  //todo:落地页按钮点击
  static const String luo_di_ye_dian_ji = "luo_di_ye_dian_ji";

  //todo:banner点击
  static const String luo_di_ye_banner_dian_ji = "luo_di_ye_banner_dian_ji";

  //todo:开心收下
  static const String luo_di_ye_kai_xin_shou_xia_dian_ji =
      "luo_di_ye_kai_xin_shou_xia_dian_ji";

  //todo:关闭弹框点击
  static const String luo_di_ye__guan_bi_dian_ji = "luo_di_ye__guan_bi_dian_ji";
}

class SuffixEvent {
  static const String dian_ji = "_dian_ji";
}

class HomePageEvent {
  //todo:万元区 入口点击
  static const String wan_yuan_qu = "wan_yuan_qu" + SuffixEvent.dian_ji;
  //todo:千元区 入口点击
  static const String qian_yuan_qu = "qian_yuan_qu" + SuffixEvent.dian_ji;
  //todo:百元区 入口点击
  static const String bai_yuan_qu = "bai_yuan_qu" + SuffixEvent.dian_ji;
  //todo:全部竞拍点击
  static const String quan_bu_jing_pai =
      "quan_bu_jing_pai" + SuffixEvent.dian_ji;
  //todo:直播看货
  static const String zhi_bo_kan_huo = "zhi_bo_kan_huo" + SuffixEvent.dian_ji;
  //todo:鉴宝估价
  static const String jian_bao_gu_jia = "jian_bao_gu_jia" + SuffixEvent.dian_ji;
  //todo:列表看录播按钮
  static const String lie_biao_kan_lu_bo =
      "lie_biao_kan_lu_bo" + SuffixEvent.dian_ji;
  //todo:列表出个价按钮
  static const String lie_biao_chu_ge_jia =
      "lie_biao_chu_ge_jia" + SuffixEvent.dian_ji;
  //todo:回流案例入口点击
  static const String hui_liu_an_li = "hui_liu_an_li";
  //todo:直播中直播间点击
  static const String zhi_bo_jian_ru_kou = "zhi_bo_jian_ru_kou";
}

//基础上传需要的参数
Map<String, dynamic> getUMengMap(Map<String, dynamic> param) {
  Map<String, dynamic> map = {
    "userId": UserUtil.getUserId(Get.context!).toString(),
  };
  map.addAll(param);
  return map;
}
